package edu.yctc.weblog.entity;

import java.util.Date;

public class CommentDO {
    private Long id;

    private Long blogId;

    private String commentator;

    private String email;

    private String url;

    private String comment;

    private Date commentTime;

    private String ip;

    private String reply;

    private Date replyTime;

    /** 评论审核状态码, 见{@link edu.yctc.weblog.enums.CommentStatus} */
    private Integer status;

    /** 评论删除状态码, 见{@link edu.yctc.weblog.enums.CommentDeleteStatus} */
    private Integer isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    public String getCommentator() {
        return commentator;
    }

    public void setCommentator(String commentator) {
        this.commentator = commentator;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("CommentDO [id=");
        builder.append(id);
        builder.append(", blogId=");
        builder.append(blogId);
        builder.append(", commentator=");
        builder.append(commentator);
        builder.append(", email=");
        builder.append(email);
        builder.append(", url=");
        builder.append(url);
        builder.append(", comment=");
        builder.append(comment);
        builder.append(", commentTime=");
        builder.append(commentTime);
        builder.append(", ip=");
        builder.append(ip);
        builder.append(", reply=");
        builder.append(reply);
        builder.append(", replyTime=");
        builder.append(replyTime);
        builder.append(", status=");
        builder.append(status);
        builder.append(", isDeleted=");
        builder.append(isDeleted);
        builder.append("]");
        return builder.toString();
    }

}